﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using System.Text;
public partial class uc_contact : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ltcontact.Text = ClientRenderWebPartTop();
        }
    }
    private string ClientRenderWebPartTop()
    {
        string Html = 
            "<!-- begin news layout --> \n" +
                        "<div class=\"contactholder\"> \n" +
                        "    <h1 class=\"title\">Liên hệ với chúng tôi</h1> \n" +
                        "    <span class=\"legend\"> \n" +
                        "        Bạn vui lòng nhập đầy đủ và chính xác tất cả nội dung bên dưới \n" +
                        "    </span> \n" +
                        "    <div class=\"contactform\"> \n" +
                        "        <form action=\"defaul.aspx\"> \n" +

                        "        <table class=\"contacttable\"> \n" +
                        "            <tr> \n" +
                        "                <td class=\"title\"><label for=\"yourname\">Họ tên</label></td> \n" +
                        "                <td class=\"content\"><input class=\"contactinput\" type=\"text\" name=\"yourname\" id=\"yourname\" /></td> \n" +
                        "            </tr> \n" +
                        "            <tr> \n" +
                        "                <td class=\"title\"><label for=\"email\">Email</label></td> \n" +
                        "                <td class=\"content\"><input class=\"contactinput\" type=\"text\" name=\"email\" id=\"email\" /></td> \n" +
                        "            </tr> \n" +
                        "            <tr> \n" +
                        "                <td class=\"title\"><label for=\"yourname\">Số điện thoại</label></td> \n" +
                        "                <td class=\"content\"><input class=\"contactinput\" type=\"text\" name=\"phone\" id=\"phone\" /></td> \n" +
                        "            </tr> \n" +
                        "            <tr> \n" +
                        "                <td class=\"title\"><label for=\"yourname\">Địa chỉ</label></td> \n" +
                        "                <td class=\"content\"><input class=\"contactinput\" type=\"text\" name=\"address\" id=\"address\" /></td> \n" +
                        "            </tr> \n" +
                        "            <tr> \n" +
                        "                <td class=\"title\"><label for=\"yourname\">Nội dung</label></td> \n" +
                        "                <td class=\"content\"><textarea class=\"contactmessage\" cols=\"55\" rows=\"10\" name=\"message\" id=\"message\"></textarea></td> \n" +
                        "            </tr> \n" +
                        "            <tr><td class=\"button\" colspan=\"2\"> \n" +
                        "                <input type=\"button\" onclick=\"Javascript:OnClientSendContact();\" value=\"Gửi đi\" class=\"button\" /> \n" +
                        "                <input type=\"button\" onclick=\"Javascript:ClientClearContact();\" value=\"Làm lại\" class=\"button\" />	 \n" +
                        "            </td></tr> \n" +
                        "        </table> \n" +

                        "        </form> \n" +
                        "    </div> \n" +
                        "</div> \n" +
                        "<!-- end news layout --> \n";
        return Html;
    }
}
